import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  base: "./",
  
  // base: "/vue3-element-admin/"
  resolve: {
    alias: {
       // 设置路径
       '~': path.resolve(__dirname, './'),
       // 设置别名
       '@': path.resolve(__dirname, './src'),
      
    }
  },

  
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `
          @import "@/style.css";
        `
      }
    }
  }

})
